package com.vilen.weixin.dao;

import com.vilen.basic.dao.BaseDao;
import com.vilen.basic.model.WeixinMenu;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2016/2/14.
 */
@Repository("weixinMenuDao")
public class WeixinMenuDao  extends BaseDao<WeixinMenu> implements  IWeixinMenuDao{
    @Override
    public WeixinMenu loadByKey(String key) {
        return (WeixinMenu) super.queryObject("from WeixinMenu where menuKey=?",key);
    }

    @Override
    public List<WeixinMenu> listAll() {
        return super.list("from WeixinMenu");
    }
}
